EXE_NAME=analyze.exe

ZIP_NAME=SATidyC.gz

CLASSES_MAIN=src/main.cpp

INCLUDE_DIR=\
			./include

CLASSES=\
			src/parse/node.cpp\
			src/parse/ast.cpp\
			src/parse/symtab.cpp


LOADED_OPT= -g


.PHNOY: all
all: build $(CLASSES_MAIN)
	g++ -o $(EXE_NAME) $(CLASSES_MAIN) *.o -I$(INCLUDE_DIR) $(LOADED_OPT)

build:  $(CLASSES)
	g++ $(CLASSES) -c -I$(INCLUDE_DIR) $(LOADED_OPT)

.PHNOY: clean
clean: 
	@rm *.o -f
	@rm $(EXE_NAME) -f
	@rm $(ZIP_NAME) -f

.PHNOY: zip
zip: clean
	@ tar cvf $(ZIP_NAME) *

.PHNOY: rebuild
rebuild: clean all
